package cn.studyjams.s1.contest.autohello.model;

/**
 * Created by liuyang
 * on 2016/11/19.
 */

import java.io.Serializable;
import java.util.List;

/**
 * Event 类
 * 表示某一个事件，该事件的名称用 title 表示，type 表示该 Event 的类型
 * type 现有：
 * HelloEvent 0
 * WeatherEvent 1
 * BirthdayEvent 2
 * FestivalEvent 3
 * 对应着 EventCard 中的 id
 *
 * ----------------------------------------------
 *
 * 如果事件类型为天气，还需要存储预报天气的城市，使用华氏度还是摄氏度
 * double lat维度
 * double lon经度
 * boolean 使用华氏度还是摄氏度 (C=true, F=false)
 */
public class Event implements Serializable {
    private String id;
    private String content;
    private List<Contact> receivers;
    private String tag;
    private String dateTime;
    private RepeatMode repeatMode;
    private int color;
    private boolean isActive;
    private boolean isDelete;
    private int type;
    private long requestCode;
    private double lat = -1;
    private double lon = -1;
    private boolean isCF = true;

    public Event() {
    }

    public Event(String id, String content, List<Contact> receivers, String tag, String dateTime,
                 RepeatMode repeatMode, int color, boolean isActive, int type, long requestCode,
                 boolean isDelete) {
        this.id = id;
        this.content = content;
        this.receivers = receivers;
        this.tag = tag;
        this.dateTime = dateTime;
        this.repeatMode = repeatMode;
        this.color = color;
        this.isActive = isActive;
        this.type = type;
        this.requestCode = requestCode;
        this.isDelete = isDelete;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Contact> getReceivers() {
        return receivers;
    }

    public void setReceivers(List<Contact> receivers) {
        this.receivers = receivers;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public RepeatMode getRepeatMode() {
        return repeatMode;
    }

    public void setRepeatMode(RepeatMode repeatMode) {
        this.repeatMode = repeatMode;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(boolean active) {
        isActive = active;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(long requestCode) {
        this.requestCode = requestCode;
    }

    public boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(boolean delete) {
        isDelete = delete;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public boolean getIsCF() {
        return isCF;
    }

    public void setIsCF(boolean CF) {
        isCF = CF;
    }
}
